<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h3>用户列表</h3>
<hr>
<a th:href="@{/sys/user/add}"
   sec:authorize="hasAuthority('sys:user:add')">新增</a>
<table style="width: 50%; text-align: left">
    <tr>
        <th>ID</th>
        <th>用户名</th>
        <th>操作</th>
    </tr>
    <tr th:each="user: ${userList}">
        <td th:text="${user.id}"></td>
        <td th:text="${user.username}"></td>
        <td>
            <a th:href="@{/sys/user/edit/{id}(id=${user.id})}"
               sec:authorize="@ss.hasPermi('sys:user:edit')">修改</a> |

            <a th:href="@{/sys/user/del/{id}(id=${user.id})}"
               sec:authorize="@ss.hasPermi('sys:user:del')">删除</a>
        </td>
    </tr>
</table>
</body>
</html>